package edu.cque.storage.service;

import edu.cque.storage.mapper.StorageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Hua
 * @create 2022-08-29 13:47
 */
@Service
public class StorageServiceImpl implements StorageService {
    @Autowired
    private StorageMapper storageMapper;
    @Override
    public void decrease(Long productId, Integer count) throws Exception {
        storageMapper.decrease(productId, count);
    }
}
